﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
public partial class uc_staticnews : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {     
        if (!IsPostBack)
        {
            int sid = 0;
            if (Request.QueryString["sid"] != null)
                sid=int.Parse("0"+ Request.QueryString["sid"].ToString());
            ltStaticNews.Text = new CmsBLL().RenderStaticNews(CommonBLL.SiteID, sid);
        }

    }    
}